Fix fonts in context menus
authorMatthias Clasen <mclasen@redhat.com>
Wed, 1 Oct 2014 11:11:43 +0000 (07:11 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 1 Oct 2014 11:11:43 +0000 (07:11 -0400)
Context menus inherit their style from the widget they are attached
to. This can have unexpected effects in particular for font, as can
be seen in gedit or gnome-calculator. Prevent this by resetting
the font of context-menus to the initial value.

gtk/resources/theme/Adwaita/_common.scss

index d1cc98db5ab6157efd1d05315a5baa87700c1dab..a4186d8e6d85cccae9eaeec6be7b05f1def602f0 100644 (file)
@@ -2834,3 +2834,7 @@ GtkVolumeButton.button { padding: 8px; }
   padding: 10px;
 }
 
+/* Decouple the font of context menus from their entry/textview */
+.context-menu {
+  font: initial;
+}